Skip to main content
Version: 5.x.x

EmitDataType


import { EmitDataType } from "@hyper-fetch/sockets"

Description

Defined in emitter/emitter.types.ts:29

Preview

type EmitDataType<Payload,HasData> = HasData extends false ? { data: Payload } : { data?: never };

Structure

HasData extends false ? {
data: Payload;
} : {
data: never;
}